.class Lcom/brixd/niceapp/activity/fragment/CardFragment$1;
.super Ljava/lang/Object;
.source "CardFragment.java"

# interfaces
.implements Lcom/brixd/niceapp/control/LocalLinkMovementMethod$OnLinkClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/fragment/CardFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/fragment/CardFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/fragment/CardFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/fragment/CardFragment;

    .prologue
    .line 138
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/CardFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLinkClick(Landroid/widget/TextView;Landroid/text/style/ClickableSpan;)Z
    .registers 7
    .param p1, "widget"    # Landroid/widget/TextView;
    .param p2, "span"    # Landroid/text/style/ClickableSpan;

    .prologue
    .line 142
    instance-of v2, p2, Landroid/text/style/URLSpan;

    if-eqz v2, :cond_67

    .line 143
    check-cast p2, Landroid/text/style/URLSpan;

    .end local p2    # "span":Landroid/text/style/ClickableSpan;
    invoke-virtual {p2}, Landroid/text/style/URLSpan;->getURL()Ljava/lang/String;

    move-result-object v1

    .line 144
    .local v1, "url":Ljava/lang/String;
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/CardFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/CardFragment;->mLinkHandler:Lcom/brixd/niceapp/util/LinkHandler;
    invoke-static {v2}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->access$000(Lcom/brixd/niceapp/activity/fragment/CardFragment;)Lcom/brixd/niceapp/util/LinkHandler;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/brixd/niceapp/util/LinkHandler;->redirectUrl(Ljava/lang/String;)Lcom/brixd/niceapp/util/LinkHandler$RedirectResult;

    move-result-object v0

    .line 145
    .local v0, "ret":Lcom/brixd/niceapp/util/LinkHandler$RedirectResult;
    sget-object v2, Lcom/brixd/niceapp/util/LinkHandler$RedirectResult;->GOTO_WEB_VIEW:Lcom/brixd/niceapp/util/LinkHandler$RedirectResult;

    if-ne v0, v2, :cond_2f

    .line 146
    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v3, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->NICE_GOODS:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-ne v2, v3, :cond_27

    .line 147
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/CardFragment;

    const-string v3, "NiceGoodsCardClickLink"

    # invokes: Lcom/brixd/niceapp/activity/fragment/CardFragment;->traceEvent(Ljava/lang/String;)V
    invoke-static {v2, v3}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->access$100(Lcom/brixd/niceapp/activity/fragment/CardFragment;Ljava/lang/String;)V

    .line 176
    :goto_25
    const/4 v2, 0x1

    .line 179
    .end local v0    # "ret":Lcom/brixd/niceapp/util/LinkHandler$RedirectResult;
    .end local v1    # "url":Ljava/lang/String;
    :goto_26
    return v2

    .line 149
    .restart local v0    # "ret":Lcom/brixd/niceapp/util/LinkHandler$RedirectResult;
    .restart local v1    # "url":Ljava/lang/String;
    :cond_27
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/CardFragment;

    const-string v3, "CardClickLink"

    # invokes: Lcom/brixd/niceapp/activity/fragment/CardFragment;->traceEvent(Ljava/lang/String;)V
    invoke-static {v2, v3}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->access$100(Lcom/brixd/niceapp/activity/fragment/CardFragment;Ljava/lang/String;)V

    goto :goto_25

    .line 153
    :cond_2f
    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardFragment$4;->$SwitchMap$com$brixd$niceapp$util$LinkHandler$RedirectResult:[I

    invoke-virtual {v0}, Lcom/brixd/niceapp/util/LinkHandler$RedirectResult;->ordinal()I

    move-result v3

    aget v2, v2, v3

    packed-switch v2, :pswitch_data_6a

    goto :goto_25

    .line 155
    :pswitch_3b
    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v3, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->NICE_GOODS:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-ne v2, v3, :cond_49

    .line 156
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/CardFragment;

    const-string v3, "ClickGotoDetailFromNiceGoodsCard"

    # invokes: Lcom/brixd/niceapp/activity/fragment/CardFragment;->traceEvent(Ljava/lang/String;)V
    invoke-static {v2, v3}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->access$100(Lcom/brixd/niceapp/activity/fragment/CardFragment;Ljava/lang/String;)V

    goto :goto_25

    .line 158
    :cond_49
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/CardFragment;

    const-string v3, "ClickGotoDetailFromCard"

    # invokes: Lcom/brixd/niceapp/activity/fragment/CardFragment;->traceEvent(Ljava/lang/String;)V
    invoke-static {v2, v3}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->access$100(Lcom/brixd/niceapp/activity/fragment/CardFragment;Ljava/lang/String;)V

    goto :goto_25

    .line 163
    :pswitch_51
    sget-object v2, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->currentCardType:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    sget-object v3, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->NICE_GOODS:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    if-ne v2, v3, :cond_5f

    .line 164
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/CardFragment;

    const-string v3, "ClickGotoCommunityDetailFromNiceGoodsCard"

    # invokes: Lcom/brixd/niceapp/activity/fragment/CardFragment;->traceEvent(Ljava/lang/String;)V
    invoke-static {v2, v3}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->access$100(Lcom/brixd/niceapp/activity/fragment/CardFragment;Ljava/lang/String;)V

    goto :goto_25

    .line 166
    :cond_5f
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/CardFragment;

    const-string v3, "ClickGotoCommunityDetailFromCard"

    # invokes: Lcom/brixd/niceapp/activity/fragment/CardFragment;->traceEvent(Ljava/lang/String;)V
    invoke-static {v2, v3}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->access$100(Lcom/brixd/niceapp/activity/fragment/CardFragment;Ljava/lang/String;)V

    goto :goto_25

    .line 179
    .end local v0    # "ret":Lcom/brixd/niceapp/util/LinkHandler$RedirectResult;
    .end local v1    # "url":Ljava/lang/String;
    .restart local p2    # "span":Landroid/text/style/ClickableSpan;
    :cond_67
    const/4 v2, 0x0

    goto :goto_26

    .line 153
    nop

    :pswitch_data_6a
    .packed-switch 0x1
        :pswitch_3b
        :pswitch_51
    .end packed-switch
.end method
